<div class="layui-fluid">
    <div class="layui-card">
        <div class="layui-form layui-card-header layuiadmin-card-header-auto">
            <div class="layui-form-item">
                <form class="layui-form" method="get" action="{:url('RequestLog/index')}">
                    <div class="layui-inline">
                        <label class="layui-form-label">开始时间</label>
                        <div class="layui-input-block">
                            <input type="text" name="start_time" value="{$start_time}" id="start_time" readonly class="layui-input" />
                        </div>
                    </div>
                    <div class="layui-inline">
                        <label class="layui-form-label">结束时间</label>
                        <div class="layui-input-block">
                            <input type="text" name="end_time" value="{$end_time}" id="end_time" readonly class="layui-input" />
                        </div>
                    </div>
                    <div class="layui-inline">
                        <label class="layui-form-label">关键词</label>
                        <div class="layui-input-block">
                            <input type="text" name="keywords" value="{$keywords}" placeholder="请输入管理员账号" autocomplete="off" class="layui-input">
                        </div>
                    </div>
                    <div class="layui-inline">
                        <button class="layui-btn layuiadmin-btn-useradmin">
                            <i class="layui-icon layui-icon-search layuiadmin-button-btn"></i>
                        </button>
                    </div>
                </form>
            </div>
        </div>
        <div class="layui-card-body">
            <div class="left mb10">
                {:u('RequestLog/delAllLog', '','清除日志','act','layui-btn-danger')}
            </div>
            <div class="layui-form">
                <table class="layui-table">
                    <thead>
                    <tr>
                        <td class="w50">
                            <input type="checkbox" lay-skin="primary" lay-filter="allChoose">
                            <div class="layui-unselect layui-form-checkbox" lay-skin="primary"><i class="layui-icon"></i></div>
                        </td>
                        <td class="w50">ID</td>
                        <td>操作账户</td>
                        <td>操作行为</td>
                        <td>创建时间</td>
                        <td>创建IP</td>
                        <td>操作</td>
                    </tr>
                    </thead>
                    <tbody>
                    {foreach name="list" item="val" key="key"}
                    <tr>
                        <td>
                            <input type="checkbox" name="log_id[]" value="{$val.log_id}" lay-skin="primary" data-id="{$val.log_id}">
                            <div class="layui-unselect layui-form-checkbox" lay-skin="primary"><i class="layui-icon"></i></div>
                        </td>
                        <td>{$val.log_id}</td>
                        <td>操作账户：{$val.account}</td>
                        <td>{$val.title}</td>
                        <td>{$val.create_time}</td>
                        <td>{$val.create_ip}</td>
                        <td>
                            {:u('RequestLog/deleteLog',['log_id'=>$val['log_id'],'p'=>$p],'删除','act','layui-btn-danger layui-btn-sm')}
                        </td>
                    </tr>
                    {/foreach}
                    </tbody>
                </table>
                <div class="paging">
                    <div class="layui-box mt10 mb10 left">
                        {:u('RequestLog/deleteLog',['p'=>$p],'批量删除','list','layui-btn-danger layui-btn-sm')}
                    </div>
                    {$page|raw}
                </div>
            </div>
        </div>
    </div>
</div>